const set = (key, value) => {
    if (window.sessionStorage) {
        window.sessionStorage.setItem(key, value)
        return true
    }
    return false
}

const get = key => {
    if (window.sessionStorage) {
        return window.sessionStorage.getItem(key)
    }
    return null
}

const remove = key => {
    if (window.sessionStorage) {
        window.sessionStorage.removeItem(key)
        return true
    }
    return false
}

const clear = () => {
    if (window.sessionStorage) {
        window.sessionStorage.clear()
        return true
    }
    return false
}



export default { set, get, remove , clear }
